package gamecase;

import gamecase.character.King;
import gamecase.character.Knight;
import gamecase.character.Queen;
import gamecase.character.Troll;
import gamecase.weapon.Axe;
import gamecase.weapon.BowAndArrow;
import gamecase.weapon.Knife;
import gamecase.weapon.Sword;

/**
 * description:
 *  一个简单游戏的客户端
 * @author yuanmenglv on 2019/11/25
 */
public class Client {
    public static void main(String[] args) {
        //武器
        Knife knife = new Knife();
        BowAndArrow bowAndArrow = new BowAndArrow();
        Axe axe = new Axe();
        Sword sword = new Sword();

        //人物
        King king = new King();
        Queen queen = new Queen();
        Knight knight = new Knight();
        Troll troll = new Troll();

        king.chooseWeapon(axe);
        queen.chooseWeapon(knife);
        knight.chooseWeapon(sword);
        troll.chooseWeapon(bowAndArrow);


        king.fight();
        queen.fight();
        knight.fight();
        troll.fight();








    }
}
